package com.carrent.stat.service.impl;


import com.carrent.stat.domain.BaseEntity;
import com.carrent.stat.mapper.StatMapper;
import com.carrent.stat.service.StatService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class StatServiceImpl implements StatService {

    @Autowired
    private StatMapper statMapper;
    @Override
    public List<BaseEntity> laodCustomerAreaStatJson() {
        return this.statMapper.queryCustomerAreaStat();
    }

    @Override
    public List<BaseEntity> opernameYearGradeStat(String year) {
        return this.statMapper.opernameYearGradeStat(year);
    }

    @Override
    public List<Double> companyYearGradeStat(String year) {
        return this.statMapper.companyYearGradeStat(year);
    }
}